/*******************************************************************************
 * Copyright (c) 2011 LegSem.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl-3.0.txt
 * 
 * Contributors:
 *     LegSem - initial API and implementation
 ******************************************************************************/
package com.legstar.eci.xmi.model;

import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

public class TypeDescriptorMap {
	
	@XStreamAsAttribute
	private String instanceTD;
	
	@XStreamAsAttribute
	private String id;
	
	private Type type;

	/** {@inheritDoc}*/
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		sb.append("instanceTD" + ":'" + instanceTD + "'");
		sb.append(",");
		sb.append("type" + ":'" + type + "'");
		sb.append(",");
		sb.append("id" + ":'" + id + "'");
		sb.append("]");
		return sb.toString();
	}

	/**
	 * @return the instanceTD
	 */
	public String getInstanceTD() {
		return instanceTD;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @return the type
	 */
	public Type getType() {
		return type;
	}

}
